#ifndef SHOWRES_H
#define SHOWRES_H

#include <QObject>
#include <QWidget>
#include <QString>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QSpacerItem>
#include <QLabel>
#include <QTextBrowser>
#include <QDebug>
#include <QPushButton>
#include <QMouseEvent>

class ShowRes : public QWidget
{
    Q_OBJECT
public:
    explicit ShowRes(QWidget *parent = nullptr, QMap<QString, QString> *map=nullptr);
    bool eventFilter(QObject *obj, QEvent *event);
private:
    QLabel *labelFileTitle;
    QLabel *labelUserName;
    QLabel *labelFileTime;
    QLabel *labelFileSize;
    QLabel *labelFileName;
    QLabel *labelFilePay;
    QLabel *labelFileType;
    QPushButton *btnDownload;
    QMap<QString, QString> mapInfo;
signals:
    void signalDownloadRes(QMap<QString, QString> mapInfo);
    void signalUserRes(QString);
public slots:
    void slotDownloadRes();
};

#endif // SHOWRES_H
